#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_dict_parse_way.py
# author:张仁
# datetime:2021/3/6 19:26
# software: PyCharm
"""
    字典解析式生成一个学生信息的字典
"""

if __name__ == '__main__':
    nameField = ['张三', '李四', '王五', '赵六', '杨七']
    classField = ["软件1901", "软件1902", "软件1901", "软件1902", "软件1901"]
    idField = ['000' + str(index) for index in range(1, 6)]
    info = {
        key: (name, num)
        for key, name, num in zip(nameField, classField, idField)
    }

    for key, value in info.items():
        print("name:{} id:{} class:{}".format(key, *value))
